<template>
  <div class="home">
    <h1>Vue调用摄像头扫描二维码/条形码功能</h1>
    <Menu />
  </div>
</template>

<script>
// @ is an alias to /src
import Menu from "@/components/Menu.vue";
import scanCodePage from "@/components/scanCodePage.vue"

export default {
  name: "Home",
  components: {
    Menu,
    scanCodePage
  },
  data() {
    return {
      
    };
  },
  methods: {    
    scanCode() {
      console.log('浏览器信息', navigator.userAgent);
      this.$router.push({
        path: '/scanCodePage'
      });
    }
  }
};
</script>
